<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: SARMUX Switch Control Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__sar__functions__switches.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">SARMUX Switch Control Functions<div class="ingroups"><a class="el" href="group__group__sar.html">SAR          (SAR ADC Subsystem)</a> &raquo; <a class="el" href="group__group__sar__functions.html">Functions</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<p>This set of functions is for controlling/querying the SARMUX switches. </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gabc0b47c3fd4c0a21adb41140bb380592"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar__functions__switches.html#gabc0b47c3fd4c0a21adb41140bb380592">Cy_SAR_SetAnalogSwitch</a> (<a class="el" href="struct_s_a_r___type.html">SAR_Type</a> *base, <a class="el" href="group__group__sar__enums.html#gaa45a7677b7c1051696ea01c15439bc11">cy_en_sar_switch_register_sel_t</a> switchSelect, uint32_t switchMask, <a class="el" href="group__group__sar__enums.html#gaaf741c5e93385a873ab81b6fccd856ad">cy_en_sar_switch_state_t</a> state)</td></tr>
<tr class="memdesc:gabc0b47c3fd4c0a21adb41140bb380592"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provide firmware control of the SARMUX switches for firmware sequencing.  <a href="#gabc0b47c3fd4c0a21adb41140bb380592">More...</a><br /></td></tr>
<tr class="separator:gabc0b47c3fd4c0a21adb41140bb380592"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga32b1e620f85def61a81a0f66f4349498"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar__functions__switches.html#ga32b1e620f85def61a81a0f66f4349498">Cy_SAR_GetAnalogSwitch</a> (const <a class="el" href="struct_s_a_r___type.html">SAR_Type</a> *base, <a class="el" href="group__group__sar__enums.html#gaa45a7677b7c1051696ea01c15439bc11">cy_en_sar_switch_register_sel_t</a> switchSelect)</td></tr>
<tr class="memdesc:ga32b1e620f85def61a81a0f66f4349498"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the state (open or close) of SARMUX switches.  <a href="#ga32b1e620f85def61a81a0f66f4349498">More...</a><br /></td></tr>
<tr class="separator:ga32b1e620f85def61a81a0f66f4349498"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7e94452c5ec875c0d3d09d19c8c79021"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar__functions__switches.html#ga7e94452c5ec875c0d3d09d19c8c79021">Cy_SAR_SetVssaVminusSwitch</a> (<a class="el" href="struct_s_a_r___type.html">SAR_Type</a> *base, <a class="el" href="group__group__sar__enums.html#gaaf741c5e93385a873ab81b6fccd856ad">cy_en_sar_switch_state_t</a> state)</td></tr>
<tr class="memdesc:ga7e94452c5ec875c0d3d09d19c8c79021"><td class="mdescLeft">&#160;</td><td class="mdescRight">Open or close the switch between VSSA and Vminus of the SARADC through firmware.  <a href="#ga7e94452c5ec875c0d3d09d19c8c79021">More...</a><br /></td></tr>
<tr class="separator:ga7e94452c5ec875c0d3d09d19c8c79021"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0f2411703292dae743387769f41b14d4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar__functions__switches.html#ga0f2411703292dae743387769f41b14d4">Cy_SAR_SetSwitchSarSeqCtrl</a> (<a class="el" href="struct_s_a_r___type.html">SAR_Type</a> *base, uint32_t switchMask, <a class="el" href="group__group__sar__enums.html#gad920c2a523792124fdb8a50052247705">cy_en_sar_switch_sar_seq_ctrl_t</a> ctrl)</td></tr>
<tr class="memdesc:ga0f2411703292dae743387769f41b14d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable or disable SARSEQ control of one or more switches.  <a href="#ga0f2411703292dae743387769f41b14d4">More...</a><br /></td></tr>
<tr class="separator:ga0f2411703292dae743387769f41b14d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga07398d4aeee19d82d96d2db02c141a82"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar__functions__switches.html#ga07398d4aeee19d82d96d2db02c141a82">Cy_SAR_SetVssaSarSeqCtrl</a> (<a class="el" href="struct_s_a_r___type.html">SAR_Type</a> *base, <a class="el" href="group__group__sar__enums.html#gad920c2a523792124fdb8a50052247705">cy_en_sar_switch_sar_seq_ctrl_t</a> ctrl)</td></tr>
<tr class="memdesc:ga07398d4aeee19d82d96d2db02c141a82"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable or disable SARSEQ control of the switch between VSSA and Vminus of the SARADC.  <a href="#ga07398d4aeee19d82d96d2db02c141a82">More...</a><br /></td></tr>
<tr class="separator:ga07398d4aeee19d82d96d2db02c141a82"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="gabc0b47c3fd4c0a21adb41140bb380592"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabc0b47c3fd4c0a21adb41140bb380592">&#9670;&nbsp;</a></span>Cy_SAR_SetAnalogSwitch()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SAR_SetAnalogSwitch </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_s_a_r___type.html">SAR_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__sar__enums.html#gaa45a7677b7c1051696ea01c15439bc11">cy_en_sar_switch_register_sel_t</a>&#160;</td>
          <td class="paramname"><em>switchSelect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>switchMask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__sar__enums.html#gaaf741c5e93385a873ab81b6fccd856ad">cy_en_sar_switch_state_t</a>&#160;</td>
          <td class="paramname"><em>state</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Provide firmware control of the SARMUX switches for firmware sequencing. </p>
<p>Each call to this function can open or close a set of switches. Previously configured switches are untouched.</p>
<p>If the SARSEQ is enabled, there is no need to use this function.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>Pointer to structure describing registers</td></tr>
    <tr><td class="paramname">switchSelect</td><td>The switch register that contains the desired switches. Select a value from <a class="el" href="group__group__sar__enums.html#gaa45a7677b7c1051696ea01c15439bc11">cy_en_sar_switch_register_sel_t</a>.</td></tr>
    <tr><td class="paramname">switchMask</td><td>The mask of the switches to either open or close. Select one or more values from the <a class="el" href="group__group__sar__mux__switch__register__enums.html#ga54fb9cfe9a89cf962de036422f9d9782">cy_en_sar_mux_switch_fw_ctrl_t</a> enum and "OR" them together.</td></tr>
    <tr><td class="paramname">state</td><td>Open or close the desired switches. Select a value from <a class="el" href="group__group__sar__enums.html#gaaf741c5e93385a873ab81b6fccd856ad">cy_en_sar_switch_state_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: </span></div><div class="line"><span class="comment">     * - Channel 0 is configured as a differential pair between P10.0 and P10.1.</span></div><div class="line"><span class="comment">     * - Channel 1 is configured to sample the internal DieTemp sensor.</span></div><div class="line"><span class="comment">     * Close required switches to make these connections.</span></div><div class="line"><span class="comment">     * Make sure to also enable the SAR sequencer control of these same switches. */</span></div><div class="line"></div><div class="line">    uint32_t chan0SwitchMask = <a class="code" href="group__group__sar__mux__switch__register__enums.html#gga54fb9cfe9a89cf962de036422f9d9782a8c541100815e95e985bcdd51a9c64146">CY_SAR_MUX_FW_P0_VPLUS</a> | <a class="code" href="group__group__sar__mux__switch__register__enums.html#gga54fb9cfe9a89cf962de036422f9d9782ac89d1179be76fc8f2e0fcd88459e3f79">CY_SAR_MUX_FW_P1_VMINUS</a>;</div><div class="line">    uint32_t chan1SwitchMask = <a class="code" href="group__group__sar__mux__switch__register__enums.html#gga54fb9cfe9a89cf962de036422f9d9782a4d91423741115c1f65c36b51fc2dd667">CY_SAR_MUX_FW_TEMP_VPLUS</a> | <a class="code" href="group__group__sar__mux__switch__register__enums.html#gga54fb9cfe9a89cf962de036422f9d9782a01b9e241cc0e9cb3f7480e4ca817948d">CY_SAR_MUX_FW_VSSA_VMINUS</a>;</div><div class="line"></div><div class="line">    <span class="comment">/* Close the switches for channel 0. */</span></div><div class="line">    <a class="code" href="group__group__sar__functions__switches.html#gabc0b47c3fd4c0a21adb41140bb380592">Cy_SAR_SetAnalogSwitch</a>(SAR_HW, <a class="code" href="group__group__sar__enums.html#ggaa45a7677b7c1051696ea01c15439bc11a78079f5b79489ddd8d21a0b4ec8be486">CY_SAR_MUX_SWITCH0</a>, chan0SwitchMask, <a class="code" href="group__group__sar__enums.html#ggaaf741c5e93385a873ab81b6fccd856ada209d2342e14329cfee7d0401ea896e21">CY_SAR_SWITCH_CLOSE</a>);</div><div class="line">    </div><div class="line">    <span class="comment">/* Close the switches for channel 1. */</span></div><div class="line">    <a class="code" href="group__group__sar__functions__switches.html#gabc0b47c3fd4c0a21adb41140bb380592">Cy_SAR_SetAnalogSwitch</a>(SAR_HW, <a class="code" href="group__group__sar__enums.html#ggaa45a7677b7c1051696ea01c15439bc11a78079f5b79489ddd8d21a0b4ec8be486">CY_SAR_MUX_SWITCH0</a>, chan1SwitchMask, <a class="code" href="group__group__sar__enums.html#ggaaf741c5e93385a873ab81b6fccd856ada209d2342e14329cfee7d0401ea896e21">CY_SAR_SWITCH_CLOSE</a>);</div><div class="line">    </div></div><!-- fragment -->
</div>
</div>
<a id="ga32b1e620f85def61a81a0f66f4349498"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga32b1e620f85def61a81a0f66f4349498">&#9670;&nbsp;</a></span>Cy_SAR_GetAnalogSwitch()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t Cy_SAR_GetAnalogSwitch </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="struct_s_a_r___type.html">SAR_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__sar__enums.html#gaa45a7677b7c1051696ea01c15439bc11">cy_en_sar_switch_register_sel_t</a>&#160;</td>
          <td class="paramname"><em>switchSelect</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the state (open or close) of SARMUX switches. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>Pointer to structure describing registers</td></tr>
    <tr><td class="paramname">switchSelect</td><td>The switch register that contains the desired switches. Select a value from <a class="el" href="group__group__sar__enums.html#gaa45a7677b7c1051696ea01c15439bc11">cy_en_sar_switch_register_sel_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Each bit corresponds to a single switch, where a bit value of 0 is open and 1 is closed. Compare this value to the switch masks in <a class="el" href="group__group__sar__mux__switch__register__enums.html#ga54fb9cfe9a89cf962de036422f9d9782">cy_en_sar_mux_switch_fw_ctrl_t</a>. </dd></dl>

</div>
</div>
<a id="ga7e94452c5ec875c0d3d09d19c8c79021"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7e94452c5ec875c0d3d09d19c8c79021">&#9670;&nbsp;</a></span>Cy_SAR_SetVssaVminusSwitch()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SAR_SetVssaVminusSwitch </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_s_a_r___type.html">SAR_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__sar__enums.html#gaaf741c5e93385a873ab81b6fccd856ad">cy_en_sar_switch_state_t</a>&#160;</td>
          <td class="paramname"><em>state</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Open or close the switch between VSSA and Vminus of the SARADC through firmware. </p>
<p>This function calls <a class="el" href="group__group__sar__functions__switches.html#gabc0b47c3fd4c0a21adb41140bb380592">Cy_SAR_SetAnalogSwitch</a> with switchSelect set to <a class="el" href="group__group__sar__enums.html#ggaa45a7677b7c1051696ea01c15439bc11a78079f5b79489ddd8d21a0b4ec8be486">CY_SAR_MUX_SWITCH0</a> and switchMask set to SAR_MUX_SWITCH0_MUX_FW_VSSA_VMINUS_Msk.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>Pointer to structure describing registers</td></tr>
    <tr><td class="paramname">state</td><td>Open or close the switch. Select a value from <a class="el" href="group__group__sar__enums.html#gaaf741c5e93385a873ab81b6fccd856ad">cy_en_sar_switch_state_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: Easily close the switch between Vminus of the SARADC and VSSA. */</span></div><div class="line">    <a class="code" href="group__group__sar__functions__switches.html#ga7e94452c5ec875c0d3d09d19c8c79021">Cy_SAR_SetVssaVminusSwitch</a>(SAR_HW, <a class="code" href="group__group__sar__enums.html#ggaaf741c5e93385a873ab81b6fccd856ada209d2342e14329cfee7d0401ea896e21">CY_SAR_SWITCH_CLOSE</a>);</div><div class="line">    </div></div><!-- fragment -->
</div>
</div>
<a id="ga0f2411703292dae743387769f41b14d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0f2411703292dae743387769f41b14d4">&#9670;&nbsp;</a></span>Cy_SAR_SetSwitchSarSeqCtrl()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SAR_SetSwitchSarSeqCtrl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_s_a_r___type.html">SAR_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>switchMask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__sar__enums.html#gad920c2a523792124fdb8a50052247705">cy_en_sar_switch_sar_seq_ctrl_t</a>&#160;</td>
          <td class="paramname"><em>ctrl</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enable or disable SARSEQ control of one or more switches. </p>
<p>Previously configured switches are untouched.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>Pointer to structure describing registers</td></tr>
    <tr><td class="paramname">switchMask</td><td>The mask of the switches. Select one or more values from the <a class="el" href="group__group__sar__mux__switch__register__enums.html#ga5af95eff1664f03132e1e02dd865f8a4">cy_en_sar_mux_switch_sq_ctrl_t</a> enum and "OR" them together.</td></tr>
    <tr><td class="paramname">ctrl</td><td>Enable or disable SARSEQ control. Select a value from <a class="el" href="group__group__sar__enums.html#gad920c2a523792124fdb8a50052247705">cy_en_sar_switch_sar_seq_ctrl_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: The SAR sequencer needs control of all switches on the dedicated SARMUX port</span></div><div class="line"><span class="comment">     * so that the channels can by sampled in a round robin fashion without CPU intervention. */</span></div><div class="line">    </div><div class="line">    uint32_t switchMask     = <a class="code" href="group__group__sar__mux__switch__register__enums.html#gga5af95eff1664f03132e1e02dd865f8a4ae2ca2428426932a81a095844b36314b6">CY_SAR_MUX_SQ_CTRL_P0</a> \</div><div class="line">                            | <a class="code" href="group__group__sar__mux__switch__register__enums.html#gga5af95eff1664f03132e1e02dd865f8a4a00768f0a6918bae046018ded9e2628ca">CY_SAR_MUX_SQ_CTRL_P1</a> \</div><div class="line">                            | <a class="code" href="group__group__sar__mux__switch__register__enums.html#gga5af95eff1664f03132e1e02dd865f8a4ac9f59d4e204a19f5be4b61173d46f221">CY_SAR_MUX_SQ_CTRL_P2</a> \</div><div class="line">                            | <a class="code" href="group__group__sar__mux__switch__register__enums.html#gga5af95eff1664f03132e1e02dd865f8a4a9eedfe9852a11bdb757dbe888b9822dc">CY_SAR_MUX_SQ_CTRL_P3</a> \</div><div class="line">                            | <a class="code" href="group__group__sar__mux__switch__register__enums.html#gga5af95eff1664f03132e1e02dd865f8a4aaa1c4bc98c48eae355d7c8c06170f660">CY_SAR_MUX_SQ_CTRL_P4</a> \</div><div class="line">                            | <a class="code" href="group__group__sar__mux__switch__register__enums.html#gga5af95eff1664f03132e1e02dd865f8a4a2187419a0095068a453be7ac03561b89">CY_SAR_MUX_SQ_CTRL_P5</a> \</div><div class="line">                            | <a class="code" href="group__group__sar__mux__switch__register__enums.html#gga5af95eff1664f03132e1e02dd865f8a4a63f28fb1e90c6605f370b7fdfb5c290d">CY_SAR_MUX_SQ_CTRL_P6</a> \</div><div class="line">                            | <a class="code" href="group__group__sar__mux__switch__register__enums.html#gga5af95eff1664f03132e1e02dd865f8a4ae3bcf75db0a900ada482b507468874db">CY_SAR_MUX_SQ_CTRL_P7</a>;</div><div class="line"></div><div class="line">    <a class="code" href="group__group__sar__functions__switches.html#ga0f2411703292dae743387769f41b14d4">Cy_SAR_SetSwitchSarSeqCtrl</a>(SAR_HW, switchMask, <a class="code" href="group__group__sar__enums.html#ggad920c2a523792124fdb8a50052247705a8c8f5667c8b22cf76bc5dc6a0b250441">CY_SAR_SWITCH_SEQ_CTRL_ENABLE</a>);</div></div><!-- fragment -->
</div>
</div>
<a id="ga07398d4aeee19d82d96d2db02c141a82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga07398d4aeee19d82d96d2db02c141a82">&#9670;&nbsp;</a></span>Cy_SAR_SetVssaSarSeqCtrl()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SAR_SetVssaSarSeqCtrl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_s_a_r___type.html">SAR_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__sar__enums.html#gad920c2a523792124fdb8a50052247705">cy_en_sar_switch_sar_seq_ctrl_t</a>&#160;</td>
          <td class="paramname"><em>ctrl</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enable or disable SARSEQ control of the switch between VSSA and Vminus of the SARADC. </p>
<p>This function calls <a class="el" href="group__group__sar__functions__switches.html#ga0f2411703292dae743387769f41b14d4">Cy_SAR_SetSwitchSarSeqCtrl</a> with switchMask set to SAR_MUX_SWITCH_SQ_CTRL_MUX_SQ_CTRL_VSSA_Msk.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>Pointer to structure describing registers</td></tr>
    <tr><td class="paramname">ctrl</td><td>Enable or disable control. Select a value from <a class="el" href="group__group__sar__enums.html#gad920c2a523792124fdb8a50052247705">cy_en_sar_switch_sar_seq_ctrl_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: Easily enable SARSEQ control of the switch between Vminus of the SARADC and VSSA. */</span></div><div class="line">    <a class="code" href="group__group__sar__functions__switches.html#ga07398d4aeee19d82d96d2db02c141a82">Cy_SAR_SetVssaSarSeqCtrl</a>(SAR_HW, <a class="code" href="group__group__sar__enums.html#ggad920c2a523792124fdb8a50052247705a8c8f5667c8b22cf76bc5dc6a0b250441">CY_SAR_SWITCH_SEQ_CTRL_ENABLE</a>);</div><div class="line">    </div></div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
